﻿@model HNCSolutions.Models.CongTy

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/_CmsAdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CongTy</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Ten)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Ten)
            @Html.ValidationMessageFor(model => model.Ten)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TenGiaoDich)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenGiaoDich)
            @Html.ValidationMessageFor(model => model.TenGiaoDich)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Slogan)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Slogan)
            @Html.ValidationMessageFor(model => model.Slogan)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Website)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Website)
            @Html.ValidationMessageFor(model => model.Website)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TruSoChinh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TruSoChinh)
            @Html.ValidationMessageFor(model => model.TruSoChinh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ChiNhanh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ChiNhanh)
            @Html.ValidationMessageFor(model => model.ChiNhanh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaSoThue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaSoThue)
            @Html.ValidationMessageFor(model => model.MaSoThue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Hotline)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Hotline)
            @Html.ValidationMessageFor(model => model.Hotline)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.GioiThieuSoLuoc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GioiThieuSoLuoc)
            @Html.ValidationMessageFor(model => model.GioiThieuSoLuoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.GioiThieuChiTiet)
        </div>
        <div>
            @Html.TextAreaFor(model => model.GioiThieuChiTiet)
            @*@Html.EditorFor(model => model.GioiThieuChiTiet)*@
            @*@Html.ValidationMessageFor(model => model.GioiThieuChiTiet)*@
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript" src="~/Plugin/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
        tinymce.init({
            selector: "textarea",
            language: 'vi_VN',
            paste_data_images: true,
            height: 300,
            theme: "modern",
            plugins: [
                "advlist autolink lists link image charmap print preview hr anchor pagebreak",
                "searchreplace wordcount visualblocks visualchars code fullscreen",
                "insertdatetime media nonbreaking save table contextmenu directionality",
                "emoticons template paste textcolor moxiemanager"
            ],
            toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
            toolbar2: "print preview media | forecolor backcolor emoticons",
            image_advtab: true
        });
    </script>


    @* <script type="text/javascript">
        CKEDITOR.replace("ckeContent");
    </script>*@
}
